<?php 
header("Content-Type: text/html; charset=utf-8");
session_start();
if (!isset ($_SESSION["id"])) {
	session_destroy();
	echo "<script language='javascript'>top.location.href = 'Login.php';</script>";
	exit;
}

include_once 'public/DB_Oracle.php';
include_once 'public/page/page.class.php';

$t_u=$_SERVER['PHP_SELF'];
$t_u=explode('/',$t_u);
$this_url = end($t_u);

$rbox_array=array(array("a1.gif","searchItem(event)","搜索"),array("001.gif","POP('POPdiv')","新增"),array("010.gif","delChecked()","批量删除"));
$rclo_array=array(array("037.gif","editRow","修改"),array("010.gif","delRow","删除"));

$rbox=array(0);
$waring_array=array('r'=>'请输入日期！','n'=>'请输入数字！');

$rcol=array();
$title="里程统计";
$table='MDMILEAGEPREDAY';
$columns=array();

//序号对应列
//控制显示列数组
$mhid_array=array();
//控制添加字段数组
$add_array=array(
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21
);
//控制编辑字段数组
$edit_array=array(
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21
);
$sel_all=false;

$DBsql = new DB_Oracle ();
$querytab=0;
if(isset($_GET['querytab'])){
$querytab=$_GET['querytab'];
}elseif(isset($_POST['querytab']))
{
	$querytab=$_POST['querytab'];
}

switch($querytab)
{
	case 0;
	$columns=array(
	//array('序号','R'),
array('车辆','CARID','n'),
array('日期','RIQI'),
array('里程(KM)','LICHENG')
		);
	break;	
	case 1;
	$title="油耗统计";
$table='MDMILEAGEPREDAY';
	$columns=array(
	//array('序号','R'),
array('车辆','CARID','n'),
array('日期','RIQI'),
array('油耗(L)','YOUHAO')
		);
	break;	
		case 2;
	$title="费用统计";
$table='FEETONGJI';
	$columns=array(
	//array('序号','R'),
array('车辆','CARID'),
array('日期','DATETIME'),
array('费用(元)','MONEY')
		);
	break;
			case 4;
	$title="项目车辆使用统计";
$table='ProjectCarCount';
	$columns=array(
array('项目名称','PROJECT_NAME'),
array('使用车辆','CARID'),
array('日期范围','DATERANGE'),
array('使用次数','COUNT')
		);
	break;
				case 5;
	$title="客户拜访车辆使用统计";
$table='ClientVisitCount';
	$columns=array(
	//array('序号','R'),
array('客户名称','CLIENT_NAME'),
array('使用车辆','CARID'),
array('日期范围','DATERANGE'),
array('使用次数','COUNT')
		);
	break;
					case 7;
	$title="告警信息统计";
$table='alarm_info_count';
	$columns=array(
	//array('序号','R'),
array('车辆','CARID'),
array('日期','DATETIME'),
array('报警次数','COUNT')
		);
	break;
	default:

	break;
}

?>

<?php
/**
 * 处理警员的添加、修改、删除，根据传递过来的act判断相应的操作
 */
if(isset($_POST['act'])||isset($_GET['act'])){

	$act=(!empty($_POST['act']))?$_POST['act']:$_GET['act'];
	
	
	include_once 'public/DB_Oracle.php';
	include_once 'public/Json.php';
	$DBsql = new DB_Oracle ();	

	if ($act=='chuli') {//查询某警员相关信息，用于更新警员信息
		$sn=$_POST['sn'];
		$sn=rtrim($sn,',');
		$sql="update gps_car_use_approval g set g.SQ_STATUS=1 where g.id in ($sn)";
		//exit($sql);
		$row=$DBsql->query($sql);
		echo 'y';
	}else if ($act=='select') {//查询某警员相关信息，用于更新警员信息
		$sn=$_POST['sn'];
		$sql="SELECT *
  FROM ".$table."   
 WHERE  ".$columns[0][1]." = ".$sn."";

		$row=$DBsql->fetch_one_array($sql);


		echo JSON($row);
	}else if($act=='up'){
		$usql='';
		   foreach ($add_array as $add_a)
		   { 
			   if($add_a<count($columns)){ 
			   	$usql.=$columns[$add_a][1];
				$usql.='=';
				if(count($columns[$add_a])>2 && $columns[$add_a][2]=='r')
				{
					$usql.="to_date('".$_POST[$columns[$add_a][1]]."', 'yyyy-mm-dd hh24:mi:ss')";
				}else if(count($columns[$add_a])>2 && $columns[$add_a][2]=='n')
				{
					$usql.=$_POST[$columns[$add_a][1]];
				}
				else $usql.=('\''.$_POST[$columns[$add_a][1]].'\'');
				$usql.=',';
			   }
		   }
		 $usql=rtrim($usql,',');
		 
		$sn=$_POST['sn'];

		$sql="update ".$table." set ".$usql." where ".$columns[0][1]."= $sn";

		if($DBsql->query($sql)){
			echo '{
				"info":"数据更新成功！",
				"status":"y"
			}';
		}else{
			echo '{
				"info":"数据更新失败！",
				"status":"n"
			}';
		}
	}else if($act=='valid'){//先验证警号是否可用
		$number=$_POST['param'];//警号
		$sql="select * from".$table."
			 where ".$columns[0][1]."=$sn";
		$row=$DBsql->fetch_one_array($sql);
		if(isset($row[$columns[0][1]])){
			echo '已经存在，请更换！';
		}else{
			echo 'y';
		}
	}else if($act=='add'){//增加

		   $a=$columns[0][1];
		   $b=$table.'_SEQ.nextval';
		   foreach ($add_array as $add_a)
		   { 
			   if($add_a<count($columns)){ 
			   	$a.=',';
			   	$a.=$columns[$add_a][1];
				
				$b.=',';
				if(count($columns[$add_a])>2 && $columns[$add_a][2]=='r')
				{
					$b.="to_date('".$_POST[$columns[$add_a][1]]."', 'yyyy-mm-dd hh24:mi:ss')";
				}else if(count($columns[$add_a])>2 && $columns[$add_a][2]=='n')
				{
					$b.=$_POST[$columns[$add_a][1]];
				}
				else $b.=('\''.$_POST[$columns[$add_a][1]].'\'');
				
			   }
		   }
		   
		 $sql="insert into ".$table."(".$a.")values(".$b.")";
	 
	if($DBsql->query($sql)){
			echo '{
				"info":"数据更新成功！",
				"status":"y"
			}';
		}else{
			echo '{
				"info":"数据更新失败！",
				"status":"n"
			}';
		}
	}else if($act=='del'){
		if(substr($act,0,3)=='del'){
		$sn=$_POST['sn'];
		$sql="delete from ".$table." dp where dp.".$columns[0][1]." in ($sn)";
		$DBsql->query($sql);
		echo 'y';
		}
	}
  die();
}
?>


<?php
$search='';
$sw='';

if(isset($_GET['search']) && $_GET['search']!='')
{
	$search=$_GET['search'];
		if(count($columns[0])>2 && $columns[0][2]=='n')
		{
			if(!is_numeric($search))
			{
				echo '<script>alert("车牌号应为数字,请重新输入!")</script>';
				$search='';
			}
		}
		else
		{
			$search='\''.$search.'\'';
		}
	//构建where条件循环
/*	$sw=' where ';
	$ci=0;
	foreach ($columns as $col){
	if($ci)	{
		$sw.=('lower('.$col[1].') like \'%'.strtolower($search).'%\'');
	}
	if($ci && count($columns)-1!=$ci)
		if(!(count($columns[$ci])>2 &&$columns[$ci][2]!='n'))$sw.=' or ';
	$ci++;
	}
	$search='&search='.$search;
*/	//exit($search);
	if($search!='')$sw.=(' where '.$columns[0][1].'='.$search);
}

/*$sql='select dense_rank() over(order by carid) R, carid CAR_ID,
to_char(GPS_SEND_TIME,\'yyyy-mm-dd\') RIQI,
cast(getmile(carid,to_char(GPS_SEND_TIME,\'yyyy-mm-dd\')) as dec(10,3)) LICHENG 
from GPS_POSITION_DATA
where  speed!=0 '.$sw.'
group by carid ,to_char(GPS_SEND_TIME,\'yyyy-mm-dd\')
order by carid ,to_char(GPS_SEND_TIME,\'yyyy-mm-dd\')';
*/
//if(isset($_GET['search']))exit($search);
$sql='select g.* from '.$table.' g '.$sw;
$rows=$DBsql->fetch_all_array($sql);
$pageSize = 12;
$total=count($rows)== 0 ? 1 : count($rows);
//第一个0显示数字  第二个1显示概况 第三个显示下拉 第四个显示数字数量

pageft($total, $pageSize, 1, 1, 1, 5,$this_url.'?query=1'.'&querytab='.$querytab.$search);
$displaypg+=$firstcount;
$sql="select * from ($sql) where r >= $firstcount and r < $displaypg";
$rows=$DBsql->fetch_all_array($sql);

?>
<br />

<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/validform.css" rel="stylesheet" type="text/css" />
<link href="public/page/css/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="js/Validform.js"></script>
<script language="javascript" type="text/javascript" src="js/public.js"></script>
<script language="javascript" type="text/javascript" src="js/date/WdatePicker.js"></script>
<style type="text/css">
.highlight {
	background: #FBF8E2;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$('#search').live(
'focusin',function(){
$(this).css({ color: "#000", background: "#eee" ,border:"1px solid #ccc"});
if($(this).val()=='搜索...')$(this).val('');
}
).live(
'focusout',function(){
$(this).css({ color: "#000", background: "#fff" ,border:"1px solid #ddd"});
if($(this).val()==''){$(this).val('搜索...');$(this).hide(500);}

}
).live('keyup', function(event){
		   if (event.keyCode=="13"){
			$(this).hide(500);
			var src='<?php echo $this_url."?querytab=".$querytab."&search="; ?>'+$.trim($('#search').val());
			window.location.href=src;
		   }
});
});

function getQueryString() {
    var result = location.search.match(new RegExp("[\?\&][^\?\&]+=[^\?\&]+", "g"));
    for (var i = 0; i < result.length; i++) {
        result[i] = result[i].substring(1);
    }
    return result;
}
//根据QueryString参数名称获取值
function getQueryStringByName(name) {
    var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
    if (result == null || result.length < 1) {
        return "";
    }
    return result[1];
}
//根据QueryString参数索引获取值
function getQueryStringByIndex(index) {
    if (index == null) {
        return "";
    }
    var queryStringList = getQueryString();
    if (index >= queryStringList.length) {
        return "";
    }
    var result = queryStringList[index];
    var startIndex = result.indexOf("=") + 1;
    result = result.substring(startIndex);
    return result;
}

var flag=false;
	function sltItem(e){
		if(e.checked){
			document.getElementById("hidd").value+=",";
			document.getElementById("hidd").value+=e.value;
		}else{
			var str=document.getElementById("hidd").value;
			var checkValu=","+e.value;
			var valu=str.replace(checkValu,"");
			document.getElementById("hidd").value=valu;
		}
	}
	function setselectstate(){
		   if(flag){
			   var $aray = document.getElementsByName("selectID");
			   for(var i=0;i<$aray.length;i++){
						$aray[i].checked = false;
				}
			   flag=false;
		   }else{
			   var $aray = document.getElementsByName("selectID");
			   for(var i=0;i<$aray.length;i++){
						$aray[i].checked = true;
				}
				flag=true;
		   }
		   sltAll();
		}
	function sltAll(){
		var $aray = document.getElementsByName("selectID");
		var $str="";
		var sub=",";
		for(var i=0;i<$aray.length;i++){
			if($aray[i].checked){
				$str+=sub+$aray[i].value;
			}
		}
		if($str==","){
			$("#hidd").val("");
		}else{
			$("#hidd").val($str);
		}
	}
	
	
	function delChecked(){
		var id=$('#hidd').val();
		if(id==""){
			alert('请选择要处理条目');
		}else{
			sn=id.substr(1,id.length);
			delRow(sn);
		}
	}
		function chuliChecked(){
		var id=$('#hidd').val();
		if(id==""){
			alert('请选择要审核条目');
		}else{
			sn=id.substr(1,id.length);
			chuli(sn);
		}
	}
	$(function(){
	searchItem()
	});
	//搜索面板
	function searchItem(e){
		var x=860;
		var y=30;
		if(typeof e !='undefined')
		{
		e = e || window.event;
		 x=e.pageX || e.clientX;
		 y=e.pageY || e.clientY;
		};
	   if(!$('#search').length)
		{
		   var input='<input id="search"  style="position:absolute;left:866px;top:20px;display:none;border-radius: 3px 3px 3px 3px;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;" type="text" value="搜索..."/>';
			$(input).appendTo("body");
		}
		if(getQueryStringByName('search')!='')
		{
			$('#search').val(decodeURIComponent(getQueryStringByName('search')));
		}else if(typeof e =='undefined') return;	
	$('#search').css({left:x-100,top:30}).show();
	}
	//新建警员
	function POP(popDiv){
		POPdiv(popDiv);
		$('#add').focus();
	}
	
	$(function()
	{
		$('#List tr:gt(0):not(:last)').hover(
		function(){
		$('#List tr td').removeClass("highlight");
		$(this).find('td').addClass("highlight");
		});
	});
	//修改警员信息
	function editRow(rowId){
		$('#upuser #sn').val(rowId);
		$.ajax({
			type:'POST',
			url:'<?php echo $this_url;?>',
			data:'act=select&sn='+rowId+'&querytab='+<?php echo $querytab?>,
			dataType:'json',
			beforeSend:function(){
			},
			success:function(data){
				if(data!=null)$.each( data, function(i, p){if(isNaN(i))$('#UPdiv').find('#'+i).val(p);});
			},
			error:function(){
				alert('服务器繁忙！');
			},
			complete:function(){
				POPdiv('UPdiv');
				$('#up').focus();	
			}
		});
	}
	//删除区号信息
	function delRow(rowId){
		if(!confirm('您确定删除该用户信息吗？')){
			return false;
		}
		$.ajax({
			type:'POST',
			url:'<?php echo $this_url;?>',
			data:'act=del&sn='+rowId+'&querytab='+<?php echo $querytab?>,
			success:function(data){
				if(data=='y'){
					$.Showmsg('删除成功！');
					setTimeout(function(){
					$.Hidemsg();
					window.location.reload();
				},1000);
				}else{
					$.Showmsg('删除失败！');
				}
			}	
		});
	}
	//处理警告信息
	function chuli(rowId){
		$.ajax({
			type:'POST',
			url:'<?php echo $this_url;?>',
			data:'act=chuli&sn='+rowId+'&querytab='+<?php echo $querytab?>,
			success:function(data){
				if(data=='y'){
					$.Showmsg('审核成功！');
					setTimeout(function(){
					$.Hidemsg();
					window.location.reload();
				},1000);
				}else{
					$.Showmsg('审核失败！');
				}
			}	
		});
	}	
	$(function(){
		$("#adduser").Validform({
			 tiptype:2,
			   ajaxurl:"<?php echo $this_url;?>?act=add"+'&querytab='+<?php echo $querytab?>,
			   callback:function(data){
					if(data.status=="y"){
						//$.Showmsg(data.info);
						setTimeout(function(){
							$.Hidemsg();
							window.location.reload();
						},1000);
					}else{
						$.Showmsg(data.info);
					}
			   }
		});
	$("#upuser").Validform({
		 tiptype:2,
		   ajaxurl:"<?php echo $this_url;?>?act=up"+'&querytab='+<?php echo $querytab?>,
		   callback:function(data){
				if(data.status=="y"){
					$.Showmsg(data.info);
					$.Showmsg(data.info);
					setTimeout(function(){
						$.Hidemsg();
						window.location.reload();
					},1000);
				}else{
					$.Showmsg(data.info);
				}
		   }
	});
});

</script>
<!--管理列表开始-->
<div class="manageTab">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="usrTab">
    <tr>
      <td width="8" height="25"><img src="images/user_01.jpg" height="25" width="8" /></td>
      <td style="background:#3980b2;" valign="middle" height="16" ><div class="use_righgDiv">
      <span <?php if(!$sel_all) echo 'style=\'display:none;\''?> ><input type="checkbox"  id="checkall" name="" value="" onclick="setselectstate()" />全选</span>
		<!--
          <span>
          <img src="images/001.gif" height="14" width="14" />
          <a onclick="POP('POPdiv')" href="javascript:void(null)">新增</a>
          </span>
		 -->
          <?php foreach ($rbox as $i){    ?>
          <span>
          <img src="images/<?php echo $rbox_array[$i][0] ?>" height="14" width="14" />
          <a onclick="<?php echo $rbox_array[$i][1]?>"  href="javascript:void(null)"><?php echo $rbox_array[$i][2]?></a></span>
          
		  <?php }?>

         <!-- <span>
          <img src="images/010.gif" height="14" width="14" />
          <a onclick="delChecked()" href="javascript:void(null)">批量删除</a>
          </span>
          -->
          <span></span>
          </div>
        <div class="use_leftDiv">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  width="22"><img src="images/311.gif" height="16" width="16" /></td>
              <td align="left"><span class="tdTit"><?php echo $title ?></span></td>
            </tr>
          </table>
        </div></td>
      <td width="8" height="25"><img src="images/user_02.gif" height="25" width="10" /></td>
    </tr>
    <tr>
      <td style="background:#3980b2;" >&nbsp;</td>
      <td><table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="usrList" id="List">
          <tr>
            <td width="5%" <?php if(!$sel_all) echo 'style=\'display:none;\''?> class="td90b2">选择</td>
			  <?php  $ci=0;	foreach ($columns as $col){   ?>
               <td <?php  if(in_array($ci,$mhid_array)) echo "style='display:none'";?> width="<?php ;echo 70/count($columns);?>%" class="td90b2">
			   <?php echo $col[0]?></td>
              <?php $ci++; }?>
			
           <?php $ci=0; foreach ($rcol as $rci){ ?>
           <td width="8%"  class="td90b2"><?php echo $rclo_array[$rci][2]; ?></td>
            <?php $ci++; }?>
            
         </tr>
          <?php if(count($rows)!=0){
          		foreach ($rows as $ros){
          	?>
          <tr id="List1">
            <td class="tdfff" <?php if(!$sel_all) echo 'style=\'display:none;\''?> >
            	<input type='checkbox' onclick='sltItem(this)' name="selectID" class="STYLE2" value="<?php echo $ros[$columns[0][1]];?>" />
             </td>
             <?php 
			  $ci=0;
			  foreach ($columns as $col){?>
              
             <td <?php if(in_array($ci,$mhid_array)) echo "style='display:none'"; ?> class="tdfff"><?php echo $ros[$columns[$ci][1]];?></td>
             <?php $ci++;}?>
            
             <?php 
			  $ci=0;
			  foreach($rcol as $rci){?>
              <td class="tdfff"><div align="center"><img src="images/<?php  echo $rclo_array[$rci][0]; ?>" width="9" height="9" /><span class="STYLE1"> [</span><a href="javascript:void(null)" onclick="<?php  echo $rclo_array[$rci][1]; ?>('<?php echo $ros[$columns[0][1]];?>')"><?php  echo $rclo_array[$rci][2]; ?></a><span class="STYLE1">]</span></div></td>
             <?php $ci++;}?>
            
          </tr>
          <?php }}else{echo '暂无数据！';}?>
          <tr>
            <td colspan="<?php  echo (count($columns)+count($rclo_array)+1);?>" class="tdfff">&nbsp;</td>
          </tr>
        </table></td>
      <td style="background:#3980b2;">&nbsp;</td>
    </tr>
    <tr>
      <td height="28" width="8"><img src="images/user_03.gif" height="28" width="8" /></td>
      <td style="background:#3980b2;"><div class="green-black" style=""><?php echo $pagenav;?></div></td>
      <td height="28" width="8"><img src="images/user_04.gif" height="28" width="8" /></td>
    </tr>
  </table>
</div>
<!--管理列表结束-->
<input type="hidden" id='hidd' value="" />
<!--弹出层新建用户开始-->
<div id="POPdiv" class="POPdiv">
  <div class="POPdiv_top"><a href="javascript:void(null)" onclick="ClosePOPdiv('POPdiv')"><img src="images/ico_close.jpg" alt="关闭" /></a>增加</div>
  <div class="POPdiv_content">
    <form class="adduser" id="adduser">
      <table border="0" cellpadding="5" cellspacing="0">
           <?php foreach ($add_array as $add_a){ if($add_a<count($columns)){ ?> 
           <tr>
          <td width="100">
          	<p ><?php  echo $columns[$add_a][0];?>
              <label for="<?php  echo $columns[$add_a][1];?>">：</label>
            </p>
            </td>
          <td><input type="text" id="<?php  echo $columns[$add_a][1];?>" name='<?php  echo $columns[$add_a][1];?>' <?php if(count($columns[$add_a])>2 && $columns[$add_a][2]=='r') echo 'class="Wdate" onfocus="WdatePicker({dateFmt:\'yyyy-MM-dd HH:mm:ss\'})"';?> datatype="<?php if(count($columns[$add_a])>2) echo $columns[$add_a][2];?>" nullmsg="请输入<?php  echo $columns[$add_a][0];?>" errormsg='<?php if(count($columns[$add_a])>2) echo $waring_array[$columns[$add_a][2]];?>'/></td>
          <td><span class="Validform_checktip"><?php if(count($columns[$add_a])>2) echo $waring_array[$columns[$add_a][2]];else echo '请输入'.$columns[$add_a][0];?></span></td>
        </tr>
        <?php }}?>
         <tr>
          <td colspan="3"><input name="" id="add" type="submit" class="btnbg" value="添加" style="width:70px; margin-left:80px; color:#FFF" /></td>
        </tr>
      </table>
    </form>
  </div>
</div>
<!--弹出层新建用户结束--> 



<!--弹出层修改用户开始-->
<div id="UPdiv" class="POPdiv">
  <div class="POPdiv_top"><a href="javascript:void(null)" onclick="ClosePOPdiv('UPdiv')"><img src="images/ico_close.jpg" alt="关闭" /></a>修改信息</div>
  <div class="POPdiv_content">
    <form class="adduser" id="upuser">
	<input type='hidden' id='sn' name='sn' />
      <table border="0" cellpadding="5" cellspacing="0">
           <?php foreach ($add_array as $add_a){ if($add_a<count($columns)){ ?> 
           <tr>
          <td width="100">
          	<p ><?php  echo $columns[$add_a][0];?>
              <label for="<?php  echo $columns[$add_a][1];?>">：</label>
            </p>
            </td>
          <td><input type="text"  id="<?php  echo $columns[$add_a][1];?>" name='<?php  echo $columns[$add_a][1];?>' <?php if(count($columns[$add_a])>2 && $columns[$add_a][2]=='r') echo 'class="Wdate" onfocus="WdatePicker({dateFmt:\'yyyy-MM-dd HH:mm:ss\'})"';?> datatype="<?php if(count($columns[$add_a])>2) echo $columns[$add_a][2];?>" nullmsg="请输入<?php  echo $columns[$add_a][0];?>" errormsg='<?php if(count($columns[$add_a])>2) echo $waring_array[$columns[$add_a][2]];?>'/></td>
          <td><span class="Validform_checktip"><?php if(count($columns[$add_a])>2) echo $waring_array[$columns[$add_a][2]];else echo '请输入'.$columns[$add_a][0];?></span></td>
        </tr>
        <?php }}?>
         <tr>
          <td colspan="3"><input name="" id="add" type="submit" class="btnbg" value="修改" style="width:70px; margin-left:80px; color:#FFF" /></td>
        </tr>
      </table>
      <input type="hidden" id="hiddUp" name="hiddUp"/>
    </form>
  </div>
</div>
<!--弹出层修改用户结束--> 
<!--弹出层选择派出所开始-->
<div id="selectLocation" class="POPdiv">
  <div class="POPdiv_top"><a href="javascript:void(null)" onclick="ClosePOPdiv('selectLocation')"><img src="images/ico_close.jpg" alt="关闭" /></a>分组查看</div>
  <div class="POPdiv_content">
    <form id="Location" action="user.php" method="get">
      <table border="0" cellpadding="5" cellspacing="0">
        <tr>
          <td width="80"><label for="selectID">选择派出所</label></td>
          <td><select id="selectID" name="selectID" onchange="groupSelect()">
              <option value="">全部</option>
            </select></td>
          <td><input type="hidden" id="departmentID" name="departmentID" value=""></td>
        </tr>
      </table>
    </form>
  </div>
</div>
<!--弹出层选择派出所结束-->